//
//  ConfirmationTableViewCell.m
//  PlayerWorld
//
//  Created by 1 on 16/6/14.
//  Copyright © 2016年 刘成. All rights reserved.
//
#define UISCREEN_WIDTH  [UIScreen mainScreen].bounds.size.width
#define UISCREEN_HEIGHT [UIScreen mainScreen].bounds.size.height

#import "ConfirmationTableViewCell.h"

@implementation ConfirmationTableViewCell


-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {

        //集合button标签
        NSArray *titlesArray = @[@"自选号码",@"机选一注",@"清空号码"];
         for (int i = 0; i < 3; i++) {
            CGFloat width;
            if (i < 3) {
                width = UISCREEN_WIDTH/3;
            }
            _optionalNumberButton = [UIButton buttonWithType:UIButtonTypeCustom];
            _optionalNumberButton.frame = CGRectMake(UISCREEN_WIDTH/3*i,0, width, 50);
             [_optionalNumberButton setTitle:titlesArray[i] forState:UIControlStateNormal];
             [_optionalNumberButton setBackgroundColor:[UIColor whiteColor]];
             _optionalNumberButton.layer.borderWidth = 1;
             _optionalNumberButton.layer.borderColor = [UIColor colorWithRed:235.0/255.0 green:235.0/255.0 blue:236.0/255.0 alpha:1].CGColor;
            _optionalNumberButton.titleLabel.font = [UIFont systemFontOfSize:16];
            [_optionalNumberButton setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
            _optionalNumberButton.tag = i+10;
            _btnTag = _optionalNumberButton.tag;
            [self.contentView addSubview:_optionalNumberButton];
        }
    }
    return self;
}


@end
